//
//  WmcEditPhotoToolView.swift
//  YPWatermarkCamera
//
//  Created by 赵新 on 2022/3/15.
//

import UIKit

class WmcEditPhotoToolView: WmcBaseView {
    lazy var addWatermarkBtn: WmcTopImgBottomTextBtn = {
        let btn = CreateBtn(title: "添加水印", image: "edit_add_watermark".wmc_image)
        return btn
    }()

    lazy var addTextRemarkBtn: WmcTopImgBottomTextBtn = {
        let btn = CreateBtn(title: "加字备注", image: "edit".wmc_image)
        return btn
    }()
    
    func CreateBtn(title: String, image: UIImage) -> WmcTopImgBottomTextBtn {
        let btn = WmcTopImgBottomTextBtn(title: title, image: image)
        btn.font = 14.wmc_font
        btn.imgTextSpacing = 6
        btn.imgSize = 32
        return btn
    }

    lazy var stackView: UIStackView = {
        let stackView = UIStackView(arrangedSubviews: [
//            addWatermarkBtn, //
            addTextRemarkBtn,
        ])
        stackView.axis = .horizontal
        stackView.distribution = .equalCentering
        stackView.alignment = .center
        stackView.spacing = 50
        return stackView
    }()

    override func makeUI() {
        backgroundColor = .black
        addSubview(stackView)
        stackView.snp.makeConstraints { make in
            make.centerX.equalToSuperview()
            make.width.equalTo(170)
            make.bottom.equalTo(-6 - Wmc_safeAreaBottom)
            make.top.equalTo(6)
        }
    }
}
